home *** CD-ROM | disk | FTP | other *** search
- NAME
- ClickLineWordChar.AVf
-
-
- DESCRIPTION
- ClickLineWordChar.AVf demonstrates how AmigaVision Professional can
- return the specific line, word and even character that is clicked on
- within a Text Window.
-
- This example flow presents the user with a text window and four hit
- boxes: "Line Up", "Line Down", "Page Up", and "Page Down". Clicking on
- these hit boxes controls the text within the Text Window.
-
- Clicking in the Text Window will trigger AmigaVision Professional to
- display the line, word and character that was clicked on in the
- three display fields at the bottom of the screen. Pressing the ESC
- key exits the example.
-
- AmigaVision Professional Text Windows are not restricted to the TEXT
- Icon. In this example flow, the Text Window is displayed using a GFX
- Icon. When the Text Window is displayed in an icon other than the TEXT
- Icon the following rules must be followed:
- 1) In order for the Page Up, Page Down, Line Up, Line Down and
- Quit hit boxes to affect the Text Window, the Text Window
- and associated hit boxes must be sub-objects within the same
- super object.
-
- 2) In order to use ObjGet to retrieve the line, word or character
- clicked on, the Text Window must have a response string.
-
- The "Calculate ClickLine" VARIABLE Icon uses the ObjGet function to
- return the value of the ClickLine attribute of the "TWindow" Text
- Window object. "Calculate ClickWord" and "Calculate ClickChar" VARIABLE
- Icons work in the same way.
-
- If this flow is moved, AmigaVision will not move the text file in the
- Text Window object if the GFX Icon. To make sure that this text file
- gets copied during an Install/Relocate, it is placed in a dummy
- RESOURCE Icon. This RESOURCE Icon is never executed, but because it is
- in the flow, AV will copy its contents (i.e. the text file).
-
- To make sure that the pathname which specifies the text file is
- currect, the variable OnlyPath is used. Using the self() function in
- the Get Pathname VARIABLES Icon, AmigaVision can determine where the
- flow has been placed and where the text file is.
-